<?php
/**
 * The Homepage widget area.
 *
 * @package toekneestuck
 * @subpackage toekneestuck
 * @since toekneestuck 2.0
 */
 
 if( ! dynamic_sidebar('homepage-widget-area') ):
?>
<section class="sixcol center projects">
	<h4 class="headline">Some of My Projects</h4>
	<ul class="clearfix">
		<li>
			<a href="#" title="Project #1">
				<img src="http://dummyimage.com/250x125/23eb23.png" alt="" />
			</a>
		</li>
		<li>
			<a href="#" title="Project #2">
				<img src="http://dummyimage.com/250x125/fff.png" alt="" />
			</a>
		</li>
		<li>
			<a href="#" title="Project #3">
				<img src="http://dummyimage.com/250x125/ff93b0.png" alt="" />
			</a>
		</li>
		<li>
			<a href="#" title="Project #4">
				<img src="http://dummyimage.com/250x125/000.png" alt="" />
			</a>
		</li>
	</ul>
	<a href="#" class="btn"><?php _e('View them All', 'toeknee'); ?></a>
</section>
<section class="sixcol last">
	<h4 class="headline"><?php _e('Still Looking For More?', 'toeknee') ?></h4>
	<div class="social clearfix">
	<?php $links = get_bookmarks(array('category_name' => 'social', 'orderby' => 'rand')); ?>
		<ul>
		<?php foreach( $links as $link ): ?>
			<li><?php 
				printf('<a href="%1$s" class="%2$s"><span>%3$s</span> %4$s</a>',
					$link->link_url,
					sanitize_html_class( strtolower($link->link_name) ),
					$link->link_description,
					$link->link_name
				); ?></li>
		<?php endforeach; ?>
		</ul>
	</div>
</section>
<?php endif; ?>